package com.umakr.ax.xf;

import com.iflytek.msc.MSC;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @author gx
 * @date 2018/2/9
 */
@Configuration
@ConditionalOnProperty("media.dir")
@ConditionalOnClass(MSC.class)
public class Mp3ConvertorAndXfTransformAutoconfig {

    @Bean
    public Mp3ConvertorAndXfTransformService mp3ConvertorAndXfTransformService(){
        return new Mp3ConvertorAndXfTransformService();
    }
}
